
import type { HistoryItem } from "@/types/views/chat";
import request from "./request";
import { Controller } from '@/api/request'
export const chathistoryApi = (chatroomId: number) => request<any, ApiRes<HistoryItem[]>>({
    url: `${Controller.history}/list?chatroomId=${chatroomId}`
})